-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataModules: only instantiate when download requested #974
Conversation
@@ -19,7 +19,11 @@ def datamodule(self) -> LoveDADataModule: | |||
scene = ["rural", "urban"] | |||
|
|||
dm = LoveDADataModule( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file will be deleted in #966, this is only temporary
torchgeo/datamodules/naip.py
Outdated
:class:`~torchgeo.datasets.NAIP` (prefix keys with naip_) and | ||
:class:`~torchgeo.datasets.Chesapeake13` (prefix keys with chesapeake_) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I first added this I was lazy and didn't provide a way to separate these. This seems like a good solution to me.
def prepare_data(self) -> None: | ||
"""Make sure that the dataset is downloaded. | ||
|
||
This method is only called once per run. | ||
""" | ||
So2Sat(**self.kwargs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This dataset cannot be automatically downloaded, no reason to prepare_data
* DataModules: only instantiate when download requested * Fix docs
Closes #967